dnl This file describes the messages needed only in this test
#include <vector>

using namespace std;

///////////// ADD MESSAGE  ////////////

/** Message used in the EventProcessor unit test. 
    It is sent by the Master to the Worker
    
    Arguments:
	start: starting point of the vector
	buffer: The vector which contains the integers
	sender: The Master	

    */


M4_CREATE_MESSAGE_TYPE(AddMessage,
</(start, int),(buffer, vector<int>)/>,
</(sender, EventProcessor)/>)

///////////// DONE MESSAGE ///////////

/** It is sent by the Worker to the Master

    Arguments: 
	sum: The sum that has been computed
	sender: The Worker
*/
M4_CREATE_MESSAGE_TYPE(DoneMessage,
</(sum, int)/>,
</(sender, EventProcessor)/>)


///////////// FILL MESSAGE ///////////
/** Message sent by the Generator to the Master 
	Arguments:
	number: number to be added to the vector
	sender: The Generator
*/

M4_CREATE_MESSAGE_TYPE(FillMessage,
</(number, int)/>,
</(sender, EventProcessor)/>)

///////////// GEN DONE MESSAGE ///////////

/** Message sent by the Generator to the Master, 
to signal that all generators are done
*/
M4_CREATE_MESSAGE_TYPE(GenDoneMessage,
</(id, int)/>,
</(sender, EventProcessor)/>)

///////////// READY MESSAGE ///////////

/** Message sent by the Worker to the Master, 
to signal that worker is ready
*/
M4_CREATE_MESSAGE_TYPE(ReadyMessage,
</(id, int)/>,
</(sender, EventProcessor)/>)

///////////// NEXT NUMBER MESSAGE ///////////

/** Message sent by the Master to Generator, 
to send the next number
*/
M4_CREATE_MESSAGE_TYPE(NextNumberMessage,
</(id, int)/>,
</(sender, EventProcessor)/>)
